﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SelElectCalcModernUI.Lib
{
    public static class NumberHelp
    {
        public static string GetString(this double value)
        {
            if (double.IsNaN(value))
                return string.Empty;
            else
                return Math.Round(value,2).ToString();
        }
        public static string GetString(this int value)
        {
            if (value < 0)
                return string.Empty;
            else
                return value.ToString();
        }
    }
}
